import axios from './axios'
import qs from 'qs'
import {baseUrl} from '@/config/config'


export const getDormAttend = (params) => {

    return new Promise((resolve,reject) => {
        axios({
            url: baseUrl + '/attendance/dormAttendanceAbnormalList',
            method: 'get',
            params
        }).then(res => {
            resolve(res.data)
        })
    })
}

export const getInoutSchool = (params) => {

    return new Promise((resolve,reject) => {
        axios({
            url: baseUrl + '/attendance/inOutSchoolAbnormalList',
            method: 'get',
            params
        }).then(res => {
            resolve(res.data)
        })
    })
}

export const getCourseAttend = (params) => {

    return new Promise((resolve,reject) => {
        axios({
            url: baseUrl + '/attendance/classRollAbNoraml',
            method: 'get',
            params
        }).then(res => {
            resolve(res.data)
        })
    })
}

export const getTeacherAttend = (params) => {

    return new Promise((resolve,reject) => {
        axios({
            url: baseUrl + '/attendance/teacherAttendanceAbnormalList',
            method: 'get',
            params
        }).then(res => {
            resolve(res.data)
        })
    })
}

